package zzz.Text.text8;

import java.util.ArrayList;
import java.util.Scanner;

public class Student_list {
    public static void main(String[] args) {
        ArrayList<Student_page> list = new ArrayList<>();
        while (true) {
            System.out.println("请输入需要实现的功能:");
            System.out.println("1.添加学生");
            System.out.println("2.查询学生表");
            System.out.println("3.删除学生");
            System.out.println("4.修改学生");
            System.out.println("5.退出");
            Scanner sc = new Scanner(System.in);
            int choice = sc.nextInt();
            if(choice ==1) {
                Student.Addlist(list);
            }else if(choice == 2){
                Student.Search(list);
            }else if(choice == 3){
               Student.delete(list);
            }else if(choice == 4){
                Student.Replace(list);
            }else if(choice == 5){
                break;
            }
        }
    }
}
